// const HX_BASEURL = "http://59.173.18.239:2051" //接口请求基路径
const HX_BASEURL = "http://192.168.2.200:9000" 
// const HX_BASEURL = "10.10.0.150" //接口请求基路径

const HX_GOLD = {
  REQ_URL: `${HX_BASEURL}`, //请求路径
  EDITOR_URL: `${HX_BASEURL}/ueditor`, //富文本路径
  UPLOAD_URL: `${HX_BASEURL}/upload-project/upload/photoUpload` //富文本图片上传接口
}

const HX_FILE_NAME = 
[
  'jquery-2.2.3.min.js',
  'ueditor.config.js', 
  'ueditor.all.js',
  'kityformula-plugin/addKityFormulaDialog.js',
  'kityformula-plugin/getKfContent.js',
  'kityformula-plugin/defaultFilterFix.js',
]
for (let i = 0; i < HX_FILE_NAME.length; i++) {
  let hm = document.createElement("script");
  hm.src = `${HX_GOLD.EDITOR_URL}/${HX_FILE_NAME[i]}`;
  hm.async=false;
  hm.defer=true;
  let s = document.getElementsByTagName("script")[0];
  s.parentNode.appendChild(hm, s);
}

